pass through one's mind
see:
cross one's mind